package net.mcreator.toolsasfood.procedures;

import net.minecraft.world.entity.Entity;

public class EatToolsSongKaiAnJianShiProcedure {
	public static void execute(Entity entity) {
		if (entity == null)
			return;
		if (entity.getPersistentData().getBoolean("isEat")) {
			entity.getPersistentData().putBoolean("isEat", (false));
			{
				Entity _ent = entity;
				if (!_ent.level.isClientSide() && _ent.getServer() != null)
					_ent.getServer().getCommands().performCommand(_ent.createCommandSourceStack().withSuppressedOutput().withPermission(4),
							"stopsound @s master minecraft:entity.generic.eat");
			}
		}
	}
}
